package exam.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/3/20 21:20
 * @since JDK 1.8
 */
@Data
@TableName("log")
@ApiModel("日志")
public class BLog {

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("主键id")
    private String id;

    @TableField("name")
    @ApiModelProperty("日志名称")
    private String name;

    @TableField("path")
    @ApiModelProperty("执行路径")
    private String path;

    @TableField("ip")
    @ApiModelProperty("执行ip")
    private String ip;

    @TableField("args")
    @ApiModelProperty("参数")
    private Object[] args;

    @TableField("result")
    @ApiModelProperty("执行结果")
    private String result;

    @TableField("createtime")
    @ApiModelProperty("创建时间")
    private Date createtime;
}
